<?php 
if(!defined('ADMIN')){
	exit('Access Denied');
}

$act_arr=array('list','addedi','del','set');
?>
<script>
$(function(){
    $('#node_id').change(function(){
	    var node = $(this).val();
		$('#node').val(node);
	});
	$('#mod_id').change(function(){
	    var node = $(this).find("option:selected").text();
		$('#mod').val(node);
	});
	$('#act_id').change(function(){
	    var node = $(this).find("option:selected").text();
		$('#act').val(node);
	});
})
</script>
<div class="pageContent">
<form action="index.php?mod=<?=MOD?>&act=<?=ACT?>" method="post"  class="pageForm required-validate"  name="form1" onsubmit="return validateCallback(this, dialogAjaxDone);">
<input type="hidden" name="subjectid" value="<?=$subjectid?>" />
<input type="hidden" name="itemid" value="<?=$id?>" />
<input type="hidden" name="sub" value="save" />
<div class="pageFormContent" layoutH="60">
<p><label>项目标题</label>
<input name="subject" type="text" size="50"  id="subject" value="<?=$row['title']?>" class="required" /></p>
<p><label>选项类型：</label>
<?=select($optiontype_arr,$row['ismultiple'],'ismultiple')?>&nbsp;<span></span></p>
<p><label>选项：</label>
<input type="hidden" name="opval[]" value="<?=$votedata[0]['optionid']?>" />
<input name="oplist[]" type="text" size="20"  value="<?=$votedata[0]['option']?>" class="required" />
<input type="hidden" name="opval[]" value="<?=$votedata[1]['optionid']?>" />
<input name="oplist[]" type="text" size="20"   value="<?=$votedata[1]['option']?>"  /><span>至少填一个</span>
</p>
<p><label>&nbsp;</label>
<span>
<input type="hidden" name="opval[]" value="<?=$votedata[2]['optionid']?>" />
<input name="oplist[]" type="text" size="20"   value="<?=$votedata[2]['option']?>"  />
<input type="hidden" name="opval[]" value="<?=$votedata[3]['optionid']?>" />
<input name="oplist[]" type="text" size="20"   value="<?=$votedata[3]['option']?>" /></span></p>
<p><label>&nbsp;</label><span>
<input type="hidden" name="opval[]" value="<?=$votedata[4]['optionid']?>" />
<input name="oplist[]" type="text" size="20"   value="<?=$votedata[4]['option']?>" />
<input type="hidden" name="opval[]" value="<?=$votedata[5]['optionid']?>" />
<input name="oplist[]" type="text" size="20"  value="<?=$votedata[5]['option']?>" /></span></p>
<p><label>&nbsp;</label><span>
<input type="hidden" name="opval[]" value="<?=$votedata[6]['optionid']?>" />
<input name="oplist[]" type="text" size="20"  value="<?=$votedata[6]['option']?>" />
<input type="hidden" name="opval[]" value="<?=$votedata[7]['optionid']?>" />
<input name="oplist[]" type="text" size="20"   value="<?=$votedata[7]['option']?>" /></span></p>
<p><label>&nbsp;</label><span>
<input type="hidden" name="opval[]" value="<?=$votedata[8]['optionid']?>" />
<input name="oplist[]" type="text" size="20"  value="<?=$votedata[8]['option']?>" />
<input type="hidden" name="opval[]" value="<?=$votedata[9]['optionid']?>" />
<input name="oplist[]" type="text" size="20"   value="<?=$votedata[9]['option']?>" /></span></p>
</div>
		<div class="formBar">
			<ul>
				<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
</form>
</div>
